package com.test1223;

public class Test02 {
    public static void main(String[] args) {
        // (2)打印5位数各个为的数字
        int value = 12345;
        System.out.println("个位"+value%10);
        System.out.println("十位"+(value/10)%10);
        System.out.println("百位"+(value/100)%10);
        System.out.println("千位"+(value/1000)%10);
        System.out.println("万位"+(value/10000)%10);



    }
}
